<?php echo $this->Session->flash(); ?>
<h1>ADICIONAR UNIDADES PERTENECIENTES AL PROYECTO <?php echo $this->Session->read('cod'); ?></h1>

<div id="loading" style="display: none;">
    <?php echo $html->image('loading.gif', array('border' => "0", 'align' => 'center')); ?>
</div>

<fieldset>
    <?php echo $form->create('PhysiographicUnits'); ?>
    <table cellpadding ="7" aling = "left">
        <tr>
            <td><?php echo $form->input('PhysiographicUnit.clase_agrologica', array('label' => "Clase Agrológica", 'options' => array('I' => 'I', 'II' => 'II', 'III' => 'III', 'IV' => 'IV', 'V' => 'V', 'VI' => 'VI', 'VII' => 'VII', 'VIII' => 'VIII'))); ?></td>
            <td><?php echo $form->input('PhysiographicUnit.area', array('label' => "Area (Ha)")); ?></td>
            <td><?php echo $form->input('PhysiographicUnit.topografia_relieve', array('label' => "Topografía y relieve ", 'options' => array('Sin registro' => 'Sin registro', '0 - 7%' => '0 - 7%', '7 - 25%' => '7 - 25%', '25 - 50%' => '25 - 50%', '> 50%' => '> 50%'))); ?></td>
        </tr>

        <tr>
            <td colspan="3"><?php echo $form->input('PhysiographicUnit.descripcion', array('label' => "Descripcion", 'class' => 'txtarea')); ?></td>
        </tr>
        <tr>
            <td></td>
            <td><?php echo $ajax->submit('Guardar', array('url' => array('controller' => 'PhysiographicUnits', 'action' => 'add'), 'update' => 'unidades', 'indicator' => 'load1')) ?></td>
            <td><?php echo $form->hidden('PhysiographicUnit.proyect_id'); ?></td>

        </tr>
    </table>
    <?php echo $form->end(); ?>
    <?php echo $ajax->link($html->image("regresar.gif", array('width' => '30', 'heigth' => '30', 'alt' => 'regresar', 'align' => 'center')), array('controller' => 'PhysiographicUnits', "action" => "index"), array('escape' => false, 'update' => 'unidades', 'indicator' => 'load1')); ?>

    <div id="load1" style="display: none;">
        <?php echo $html->image('loading.gif', array('border' => "0", 'align' => 'center')); ?>
    </div>